-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enrich /me
endpoint with user roles
#2224
Conversation
Removed vultr server and associated DNS entries |
api.planx.uk/modules/misc/docs.yaml
Outdated
items: | ||
type: object | ||
properties: | ||
teamId: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it'd be super handy to have the teamSlug
exposed here in addition to teamId
- as I think we can then call this endpoint from the editor for signed-in users to populate their user menu in a meaningful way? Have an outdated wip version of this over here: https://github.com/theopensystemslab/planx-new/pull/2214/files#diff-a23b8e0cdc75fc858dc3a73983f67d257f78158596c37832202cf963efcf0a6aR267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it!
a178d15
to
3396e2f
Compare
See comment here for context - theopensystemslab/planx-new#2224 (comment)
2a5353e
to
822abfe
Compare
Blocked by #2226 |
ea011d1
to
872891b
Compare
- Add tests - Move to module, use YAML docs - Return role details
822abfe
to
988ad28
Compare
What does this PR do?
/me
, makes this accessible to all logged in users/me
and/
(healthcheck) to a "misc" module in the API